clear
close
clc
load('图1.jpg');
a=imread('图1.jpg');
r=a(:,:,1);
g=a(:,:,2);
b=a(:,:,3);
mil=(120<r)&(r<180)&(120<b)&(b<180)&(120<g)&(g<180);
r(mil)=255;g(mil)=255;b(mil)=255;
aa(:,:,1)=r;aa(:,:,2)=g;aa(:,:,3)=b;
figure,imshow(aa);